import { ResPage } from "@/api/interface/index";
import { MONITOR } from "@/api/config/servicePort";
import http from "@/api";

/**
 * @name 运营监控模块
 */
// 工单监控
export const getTicketList = (params?: object) => {
  return http.get<ResPage<any>>(MONITOR + `/operation/ticket/`, params);
};
// 账单监控
export const getBillList = (params?: object) => {
  return http.get<ResPage<any>>(MONITOR + `/operation/bill/`, params);
};
// 工单类型
export const getTicketTypes = () => {
  return http.get<any>(MONITOR + `/operation/ticket_types/`);
};
// 资源对象列表
export const getResourceTypes = () => {
  return http.get<any>(MONITOR + `/operation/resource_types/`);
};
// vdc_projects列表
export const getVdcProjectList = () => {
  return http.get<any>(MONITOR + `/operation/vdc_project_list/`);
};
